$(document).ready(function () {	
	$('#send').click(function () {
		var strHTML="<div id='smsp' class='faqbg'></div>";
		strHTML+="<div id='subsmsp' class='faqdiv' style='display:none'>";
		strHTML+="<h2>添加处置建议<span class='close'>关闭</span></h2>";
		strHTML+="<div class='form'><textarea id='daContent' style='width:95%' rows='7'></textarea></div>";
		strHTML+="<div ><span style='padding-left:210'><button id='dAdivce' class='submit'>添 加</button></span>";
		strHTML+=" <span style='padding-left:10'><button class='submit close'>取 消</button></span></div><br />";
		strHTML+="</div>"
		$("body").append(strHTML);
		
		$("#smsp").css({display:"block",height:$(document).height()});
		$("#subsmsp").css("display","block");
		document.documentElement.scrollTop=0;
		$(".close").click(function(){
			$("#smsp").remove();
	  		$("#subsmsp").remove();
		});
		$("#dAdivce").click(function(){
			var eid=$("#eid").text();
			var daContent=$("#daContent").val();
			$.ajax({
	  			type: "post",
	  			data: {"EId":eid,"daContent":daContent},
	 			url: "wzp/disposalAdvice_save.action",
	  			success:function(data){
	  				$('#DAAreaHead').empty();
	  				$('#DAAreaUtil').empty();
	  				$('#DAAreaBody').empty();
	  				findAllDAByEId();
	  				$("#smsp").remove();
	  				$("#subsmsp").remove();
					
	  			}  		 
			});
		});
	});	
});